package com.ming.zkfeign.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * @Auther: tangC
 * @Date: 2020/7/27 11:15
 * @Description:
 */
@RestController
public class FileController {

    @PostMapping("fileUpload")
    public boolean fileUpload(@RequestParam("file") MultipartFile file){
        try {
            InputStream inputStream = file.getInputStream();
        }catch (Exception e){

        }
        return true;
    }
}
